package com.bzframework.network.tcp.parser;

import com.bzframework.core.dict.Dict;
import com.bzframework.core.dict.EnumDict;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * PayloadParserType
 */
@Getter
@AllArgsConstructor
@Dict("payload-parser-type")
public enum PayloadParserType implements EnumDict<String> {

    DIRECT("不处理"),

    FIXED_LENGTH("固定长度"),

    DELIMITED("分隔符"),

    SCRIPT("自定义脚本"),

    LENGTH_FIELD("长度字段"),
    ;

    private final String text;

    @Override
    public String getValue() {
        return name();
    }
}
